<template>
  <div id="app">
    <a href='/'>首页</a>
    <a href='/index'>列表页</a>
    <a href="/system">系统页</a>
    <a href="/login">登陆页</a>
    <img src="./assets/logo.png">
    <router-view/>
    <loading v-if="loadingStatus"></loading>
    <alerts v-if="alertStatus" v-bind:tip="alertContent"></alerts>
  </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: 'App',
  computed:{
    ...mapState([
      'loadingStatus',
      'alertStatus',
      'alertContent'
    ])
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
